
//  @Description 公共字体颜色、样式、大小。
//  @author cuiliuhao
//  @date 2023/3/17

import {
  Slider,
  Color,
  Select
} from '@/components/CustomPage/fields/widget'

export function fontFamilyColorSize() {
  return [
    {
      type: Color,
      option: {
        label: '标题颜色',
        name: 'titleColor',
        value: '#fff',
        showalpha: true
      }
    },
    {
      type: Select,
      option: {
        label: '标题样式',
        name: 'fontFamily',
        list: [
          { name: 'Mac字体', value: 'Hiragino Sans GB' },
          { name: 'windows字体', value: 'Microsoft YaHei UI' },
          { name: '连体', value: 'cursive' },
          { name: '有衬字体', value: 'fangsong' }
        ],
        value: 'Microsoft YaHei UI'
      }
    },
    {
      type: Slider,
      option: {
        label: '标题文字大小',
        name: 'fontSize',
        min: 24,
        value: 30,
        max: 45,
        step: 1
      }
    }
  ]
}
